package com.security.door.dao.mapper;

import com.security.door.core.tk.mapper.MyBaseMapper;
import com.security.door.model.domain.baseMenu;
import com.security.door.model.dto.baseMenuDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.annotation.CacheConfig;
import java.util.List;
import java.util.Map;

@Mapper
@CacheConfig(cacheNames = "menus")
public interface baseMenuMapper extends MyBaseMapper<baseMenu> {

    List<baseMenu> queryListWithPage(baseMenuDto entity);

    List<baseMenu> selectParent();

    List<baseMenu> selectByRoleCode(Map map);

    Integer getMenuId(Integer pMenuId);

    Integer updateState(String guid);

    List<baseMenu> selectByUserId(String userId);
}
